import Vue from 'vue'
import VueRouter from 'vue-router'
import userView from "@/pages/views/UserView";
import goodsView from "@/pages/views/GoodsView";
import sellsView from "@/pages/views/SellsView";
import newsView from "@/pages/views/NewsView";
Vue.use(VueRouter)

const routes = [
	{
		name: "usersView",
		path: "/users",
		component: userView
	},
	{
		name:"goodsView",
		path:"/goods",
		component: goodsView
	},
	{
		name:"sellsView",
		path:"/sells",
		component:sellsView
	},
	{
		name: "newsView",
		path: "/news",
		component: newsView
	},
	// {
	// 	name:exit,
	// 	path:"/exit",
	// 	component: exit
	// }
]

const router = new VueRouter({
  routes
})

export default router
